//接口类型：需要更加深度的理解！！！
package main
import (
	"fmt"
)
type user struct{
	name string
	age byte
}

func (u user) Print(){
	fmt.Printf("%+v\n",u)
}

type Printer interface{
	Print()
}

func main(){
	var u user
	u.name = "Tom"
	u.age= 29
	var p Printer = u
	p.Print()
}